import store from '../store'

import{
    GETMOVIELISE
} from '../constnant/movieConst'

import {
    getMovieRequest
} from '../../api/index'


export const  getMovieAction = () => {
    return async () => {
        const re = await getMovieRequest()
        store.dispatch({
            type:GETMOVIELISE,
            data: re.data.data.list
        })
    }
}